<table width="900" border="0" align="center" cellpadding="0" cellspacing="0" class="contenidocamiones">
      <tr>
        <td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td><table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">
              
              
            </table>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td>&nbsp;</td>
                </tr>
                
                <tr>
                    <td bgcolor="#FFFFFF">
                        <table width="100%" border="1" cellspacing="2" cellpadding="0">
                            <tr>
                                
                                <?php
                                $i = 0;
                                $bgcolor = 0;
                                foreach ($camiones as $camion) { ?>
                                <?php 
                                if($i == 0) {
                                    echo "<tr>";
                                }
                                if($bgcolor == 1) {
                                    $bgcolor = 0;
                                } else {
                                    $bgcolor = 1;
                                }
                                ?>
                            <td width="33%" <?=($bgcolor)?"bgcolor='#D5D9DF'":""?>><div align="center">
                                <table width="80%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td>&nbsp;</td>
                                  </tr>
                                  <tr>
                                      <td><div align="center"><a href="#"><img src="<?=(count($camion['adjuntos']) > 0)?$camion['adjuntos'][0]['adjunto']:"/assets/lightbox2.04/images/close.gif"?>" width="162" height="120"  alt=""/></a></div></td>
                                  </tr>
                                  <tr>
                                    <td><div align="center"></div></td>
                                  </tr>
                                  <tr>
                                    <td><div align="center" class="textocamiones"><strong><?=$camion['marca'].' '.$camion['modelo']?></strong></div></td>
                                  </tr>
                                  <tr>
                                    <td><div align="center" class="textocamiones"><strong>Año: <?=$camion['anio']?></strong></div></td>
                                  </tr>
                                  <tr>
                                    <td><div align="center" class="textocamiones">En Venta </div></td>
                                  </tr>
                                  <tr>
                                      <td><div align="center" class="textocamiones"><a href="/admin/borrar/<?=$camion['idunidad']?>/">Borrar</a></div></td>
                                  </tr>
                                </table>
                            </div></td>    
                                <?php 
                                    $i++;
                                    if($i == 3) {
                                        echo "</tr>";
                                        $i = 0;
                                    }
                                    
                                ?>
                                <?php } ?>
                            
                      
                            
                            
                            
                        </table>
                    </td>
                </tr>

                <tr>
                  <td>&nbsp;</td>
                </tr>
              </table></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
      </tr>